import { propDecoratorFactory } from "./decorator.factory";


const toNumber = val => isNaN(val) ? 0 : Number(val);

export function InputNumber() {
  return propDecoratorFactory('InputNumber', toNumber);
}